import request from '@/utils/request'

/***************************************************** 订单列表 ****************************************************/
/**
 * 订单创建
 */
export function orderCreate(params: Record<string, any>) {
    if (uni.getStorageSync('wapShopMember')) {
        params.userId = uni.getStorageSync('wapShopMember').id;
    }
    // return request.post('shop/order_create/create', params)
    return request.post('trade/order/create-reserve', params, { isYuDao: true })

}
/**
 * 获取订单列表
 */
export function getShopOrder(params: Record<string, any>) {
    return request.get(`trade/order/page`, params, { isYuDaoAdmin: true })

}
/**
 * 获取订单列表
 */
export function getShopOrderDetail(params: Record<string, any>) {
    return request.get(`trade/order/get-detail`, params, { isYuDaoAdmin: true })

}


